package com.feige.controller;


import com.feige.result.AjaxResult;
import com.feige.service.FractionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 分数表 前端控制器
 * </p>
 *
 * @author feige
 * @since 2021-04-01
 */
@Api(tags = "分数表 前端控制器")
@RestController
@RequestMapping("/exercise/fraction")
public class FractionController {

    @Resource
    private FractionService fractionService;

    @ApiOperation(value = "获取学生分数")
    @GetMapping("/{pageNum}/{exerciseTitleId}")
    public AjaxResult getStuFraction(
            @PathVariable Integer pageNum,
            @PathVariable String exerciseTitleId
    ){
        return fractionService.getStuFraction(pageNum,exerciseTitleId);
    }

}

